#HTML <ol>
The <ol> HTML element represents an ordered list of items — typically rendered as a numbered list.
#Attributes
-
reversed
: This Boolean attribute specifies that the list's items are in reverse order. Items will be numbered from high to low. -
start
: An integer to start counting from for the list items. Always an Arabic numeral (1, 2, 3, etc.), even when the numberingtype
is letters or Roman numerals. For example, to start numbering elements from the letter "d" or the Roman numeral "iv," usestart="4"
. -
type
: Sets the numbering type:a
for lowercase lettersA
for uppercase lettersi
for lowercase Roman numeralsI
for uppercase Roman numerals1
for numbers (default)
The specified type is used for the entire list unless a different
type
attribute is used on an enclosed<li>
element.Note: Unless the type of the list number matters (like legal or technical documents where items are referenced by their number/letter), use the CSS
list-style-type
property instead.